package com.system.arrangement.service;

import com.system.arrangement.been.Arrangement;
import com.system.arrangement.dto.ArrangementDTO;
import com.system.arrangement.vo.ArrangementManageVO;
import com.system.arrangement.vo.ArrangementVO;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 林
 */
public interface ArrangementService {
    Integer saveArrangement(Arrangement arrangement);
    boolean removeArrangementById(int id);
    boolean modifyArrangement(Arrangement arrangement);
    Arrangement getArrangementById(int id);
    List<Arrangement> listAllArrangements();

    List<Arrangement> listByDt(LocalDate arrangementDt);

    List<Arrangement> findAllByEmployeeIdAndArrangementDt(int employeeId,LocalDate arrangementDt);

    List<ArrangementVO> findAllByDepartmentIdAndArrangementDt(int departmentId, LocalDate arrangementDt);

    List<String> stateByDt(int departmentId, LocalDate arrangementDt);

    Integer addNewArrangement(ArrangementDTO arrangementDTO);

    List<ArrangementManageVO> findAllArrangementManageVO();
}
